package com.qingke.OMS.Command.Imp;



import java.util.List;

import com.qingke.OMS.Command.Command;
import com.qingke.OMS.Dao.PeopleDao;
import com.qingke.OMS.Pojo.People;
import com.qingke.OMS.Unit.Console;

public class softDeletePeopleByIdCommand implements Command{

	@Override
	public void execute() {
        PeopleDao pdao=new PeopleDao();
        int id=Console.askUserInputInt("Please enter what you want to delete of id?");
        
        List<People> people = pdao.checkPeopleByUserId(id);
        int sid = people.get(0).getUser_state_sid();
		pdao.softDeletePeopleById(sid);
		
	}

}
